def reverse_dictionary(dictionary):
    new_d = {}
    # TODO - your code here
    for item in dictionary:
        new_d[dictionary[item]] = item
    return new_d


def spanish_to_french(english_to_spanish, english_to_french):
    """
    Given an English to Spanish dictionary and an English
    to French dictionary, returns a Spanish to French dictionary.

    If any words appear in one dictionary but NOT the other,
    they should not be included in the resulting dictionary.
    """
    s2f = {}
    #
    # TODO - your code here
    #
    for item in english_to_spanish:
        if item in english_to_french:
            s2f[english_to_spanish[item]] = english_to_french[item]
    return s2f


if __name__ == '__main__':
    pass
